package com.ruoyi.system.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据源配置对象 sys_source_config
 * 
 * @author ruoyi
 * @date 2022-04-21
 */
@AllArgsConstructor
@NoArgsConstructor
public class SysSourceConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long sourceId;

    /** 数据源编码 */
    @Excel(name = "数据源编码")
    private String sourceCode;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String project;

    /** 切面声明包名称 */
    @Excel(name = "切面声明包名称")
    private String packageName;

    /** 连接信息 */
    @Excel(name = "连接信息")
    private String url;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String passWord;

    /** 数据驱动类 */
    @Excel(name = "数据驱动类")
    private String drivers;

    /** 数据库类型 */
    @Excel(name = "数据库类型")
    private String databaseType;

    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setSourceCode(String sourceCode) 
    {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() 
    {
        return sourceCode;
    }
    public void setProject(String project) 
    {
        this.project = project;
    }

    public String getProject() 
    {
        return project;
    }
    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassWord(String passWord) 
    {
        this.passWord = passWord;
    }

    public String getPassWord() 
    {
        return passWord;
    }
    public void setDrivers(String drivers) 
    {
        this.drivers = drivers;
    }

    public String getDrivers() 
    {
        return drivers;
    }
    public void setDatabaseType(String databaseType) 
    {
        this.databaseType = databaseType;
    }

    public String getDatabaseType() 
    {
        return databaseType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sourceId", getSourceId())
            .append("sourceCode", getSourceCode())
            .append("project", getProject())
            .append("packageName", getPackageName())
            .append("url", getUrl())
            .append("userName", getUserName())
            .append("passWord", getPassWord())
            .append("drivers", getDrivers())
            .append("databaseType", getDatabaseType())
            .append("remark", getRemark())
            .toString();
    }
}
